<template>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-sizes="[10, 20, 30, 40]"
      :page-size="pageSize"
      layout=" -> ,sizes, prev, pager, next,total,jumper"
      :total="total">
    </el-pagination>
</template>

<script>
export default {
  props:['page','pageSize','total'],
  data() {
    return {
    }
  },
   methods: {
      handleSizeChange(val) {
        this.$emit('changePageSize',val)
      },
      handleCurrentChange(val) {
        this.$emit('changeCurrent',val)
      }
    },
}
</script>

<style>

</style>